<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<section>
    <ul>
        <li>只允许一个全局变量</li>
        <li>缺点: 可以修改全局变量里面的属性</li>
    </ul>
</section>
<script>
    var all = {
        module1: {},
        module2: {}
    }
</script>
</body>
</html>